import request from '@/utils/request'

// 创建警示标志类别
export function createRiskWarningSignCategory(data) {
  return request({
    url: '/biz/risk-warning-sign-category/create',
    method: 'post',
    data: data
  })
}

// 更新警示标志类别
export function updateRiskWarningSignCategory(data) {
  return request({
    url: '/biz/risk-warning-sign-category/update',
    method: 'put',
    data: data
  })
}

// 删除警示标志类别
export function deleteRiskWarningSignCategory(id) {
  return request({
    url: '/biz/risk-warning-sign-category/delete?id=' + id,
    method: 'delete'
  })
}

// 获得警示标志类别
export function getRiskWarningSignCategory(id) {
  return request({
    url: '/biz/risk-warning-sign-category/get?id=' + id,
    method: 'get'
  })
}

// 获得警示标志类别分页
export function getRiskWarningSignCategoryPage(query) {
  return request({
    url: '/biz/risk-warning-sign-category/page',
    method: 'get',
    params: query
  })
}

// 导出警示标志类别 Excel
export function exportRiskWarningSignCategoryExcel(query) {
  return request({
    url: '/biz/risk-warning-sign-category/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

// 获得警示标志类别不分页
export function getAllRiskWarningSignCategory() {
  return request({
    url: '/biz/risk-warning-sign-category/getAllList',
    method: 'get'
  })
}